package com.talent.jiwen.http.result;

/**
 * Created by qyqx on 2018/7/10.
 */

public class UpDateResult {

//    {
//        "update": "Yes",//有新版本
//            "new_version": "0.8.3",//新版本号
//            "apk_file_url": "https://raw.githubusercontent.com/WVector/AppUpdateDemo/master/apk/app-debug.apk", //apk下载地址
//            "update_log": "1，添加删除信用卡接口\r\n2，添加vip认证\r\n3，区分自定义消费，一个小时不限制。\r\n4，添加放弃任务接口，小时内不生成。\r\n5，消费任务手动生成。",//更新内容
//            "target_size": "5M",//apk大小
//            "new_md5":"A818AD325EACC199BC62C552A32C35F2",
//            "constraint": false//是否强制更新
//    }



    private String update;
    private String new_version;
    private String apk_file_url;
    private String update_log;
    private String target_size;

    private boolean constraint;
    private String new_md5;

    public UpDateResult(String update,String new_version,String apk_file_url,String update_log,String target_size,boolean constraint,String new_md5){

        this.update=update;
        this.new_version=new_version;
        this.apk_file_url=apk_file_url;
        this.update_log=update_log;
        this.target_size=target_size;
        this.constraint=constraint;
        this.new_md5=new_md5;

    }

    public UpDateResult(String update){

        this.update=update;

    }




    @Override
    public String toString() {
        return "UpDateResult{" +
                "update='" + update + '\'' +
                ", new_version='" + new_version + '\'' +
                ", apk_file_url='" + apk_file_url + '\'' +
                ", update_log='" + update_log + '\'' +
                ", target_size='" + target_size + '\'' +
                ", new_md5='" + new_md5 + '\'' +
                ", constraint='" + constraint + '\'' +
                '}';
    }
}
